package day01;

import java.util.Scanner;

public class ZT2 {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        // 注意 hasNext 和 hasNextLine 的区别
        int len = in.nextInt();
        for (int i = 0; i < len; i++) {
            int num = in.nextInt();
            if (num % 2 == 0) {
                System.out.println("YES");
            } else {
                System.out.println("NO");
            }
        }
    }
}
